package com.naze32.configurator.designerscripts;
import anywheresoftware.b4a.objects.TextViewWrapper;
import anywheresoftware.b4a.objects.ImageViewWrapper;
import anywheresoftware.b4a.BA;


public class LS_gps{

public static void LS_general(java.util.HashMap<String, anywheresoftware.b4a.objects.ViewWrapper<?>> views, int width, int height, float scale) {
//BA.debugLineNum = 2;BA.debugLine="gpsfix.Left = 50%x-gps_lat.Width/2"[gps/General script]
views.get("gpsfix").setLeft((int)((50d / 100 * width)-(views.get("gps_lat").getWidth())/2d));
//BA.debugLineNum = 3;BA.debugLine="gps_lat.Left = gpsfix.Left"[gps/General script]
views.get("gps_lat").setLeft((int)((views.get("gpsfix").getLeft())));
//BA.debugLineNum = 4;BA.debugLine="gps_lon.Left = gpsfix.Left"[gps/General script]
views.get("gps_lon").setLeft((int)((views.get("gpsfix").getLeft())));
//BA.debugLineNum = 5;BA.debugLine="gps_alt.Left = gpsfix.Left"[gps/General script]
views.get("gps_alt").setLeft((int)((views.get("gpsfix").getLeft())));
//BA.debugLineNum = 6;BA.debugLine="gpsnumsat.Right = gps_lat.Left+gps_lat.Width"[gps/General script]
views.get("gpsnumsat").setLeft((int)((views.get("gps_lat").getLeft())+(views.get("gps_lat").getWidth()) - (views.get("gpsnumsat").getWidth())));
//BA.debugLineNum = 7;BA.debugLine="gps_speed.Right = gpsnumsat.Right"[gps/General script]
views.get("gps_speed").setLeft((int)((views.get("gpsnumsat").getLeft() + views.get("gpsnumsat").getWidth()) - (views.get("gps_speed").getWidth())));
//BA.debugLineNum = 8;BA.debugLine="gpsfix.Top = 10%y"[gps/General script]
views.get("gpsfix").setTop((int)((10d / 100 * height)));
//BA.debugLineNum = 9;BA.debugLine="gpsnumsat.Top= gpsfix.Top"[gps/General script]
views.get("gpsnumsat").setTop((int)((views.get("gpsfix").getTop())));
//BA.debugLineNum = 10;BA.debugLine="gps_lat.Top = gpsfix.Top +15%y"[gps/General script]
views.get("gps_lat").setTop((int)((views.get("gpsfix").getTop())+(15d / 100 * height)));
//BA.debugLineNum = 11;BA.debugLine="gps_lon.Top = gpsfix.Top +30%y"[gps/General script]
views.get("gps_lon").setTop((int)((views.get("gpsfix").getTop())+(30d / 100 * height)));
//BA.debugLineNum = 12;BA.debugLine="gps_alt.Top = gpsfix.Top +45%y"[gps/General script]
views.get("gps_alt").setTop((int)((views.get("gpsfix").getTop())+(45d / 100 * height)));
//BA.debugLineNum = 13;BA.debugLine="gps_speed.Top =gpsfix.Top +45%y"[gps/General script]
views.get("gps_speed").setTop((int)((views.get("gpsfix").getTop())+(45d / 100 * height)));
//BA.debugLineNum = 14;BA.debugLine="googlemaps_button.Left=50%x-googlemaps_button.Width/2"[gps/General script]
views.get("googlemaps_button").setLeft((int)((50d / 100 * width)-(views.get("googlemaps_button").getWidth())/2d));
//BA.debugLineNum = 15;BA.debugLine="googlemaps_button.Top= gpsfix.Top +60%y"[gps/General script]
views.get("googlemaps_button").setTop((int)((views.get("gpsfix").getTop())+(60d / 100 * height)));

}
}